<template>
	<template v-if="btnType=='0'">
		<view class="bnt-type1" @click.stop="contactService">联系客服</view>
	</template>
	<template v-if="btnType=='1'">
		<view class="contact-view">
			<view>有问题，</view>
			<view class="number" @click.stop="contactService">请联系客服</view>
		</view>
	</template>
	<template v-if="btnType=='2'">
		<view class="contact-view2" @click.stop="contactService">联系客服</view>
	</template>
</template>

<script>
	export default {
		props: {
			btnType: {
				type: String,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			//点击拨打客服电话
			contactService(){
				uni.makePhoneCall({
					phoneNumber: this.contactPhone
				});
			}
		}
	}
</script>

<style scoped lang="less">
	.bnt-type1{
		width: 176rpx;
		height: 64rpx;
		line-height: 64rpx;
		text-align: center;
		border-radius: 32rpx;
		font-size: 28rpx;
		margin-left: 32rpx;
		background: #FFFFFF;
		border: 1rpx solid #ABAFB7;
		color: #585F70;
	}
	.contact-view{
		display: flex;
		flex-direction: row;
		justify-content: center;
		font-size: 28rpx;
		line-height: 48rpx;
		margin-top: 64rpx;
		color: #585F70;
		.number{
			color: #01CBFF;
			margin-left: 4rpx;
		}
	}
	.contact-view2{
		width: 100%;
		height: 96rpx;
		line-height: 96rpx;
		text-align: center;
		margin-top: 32rpx;
		background: #F9F9F9;
		border-radius: 48rpx;
		border: 1rpx solid #ABAFB7;
		font-size: 32rpx;
		color: #585F70;
	}
</style>
